package org.luxor.commons.redis.plugin.idempotent.model;

/**
 * 幂等凭证返回实体
 *
 * @author Mr.Yan  @date: 2020/9/18
 */
public class SysIdempotentDto {

    /**
     * 幂等验证Token
     */
    private String token;

    /**
     * 有效期(单位:秒)
     */
    private int expiresIn;

    public SysIdempotentDto() {
    }

    public SysIdempotentDto(String token, int expiresIn) {
        this.token = token;
        this.expiresIn = expiresIn;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }

    @Override
    public String toString() {
        return "SysIdempotentDto{" +
                "token='" + token + '\'' +
                ", expiresIn=" + expiresIn +
                '}';
    }
}
